import random
def genrandom():
    nums=[]
    rand_count=random.randint(1,100)
    #生成一个大小为rand_count的数组
    for i in range(rand_count):
        nums.append(random.randint(-10**5,10**5))

    #生成一个左边界值
    left=random.randint(-10**5,10**5-1)
    right=random.randint(left+1,10**5)
    return nums,left,right



